Component({
  properties: {
    tabs: {
      type: Array,
      value: []
    },
    currentTab: {
      type: Number,
      value: 0
    },
    styles: {
      type: String,
      value: ''
    }
  },
  data: {},
  methods: {
    clickTab: function(evt) {
      this.triggerEvent("change", {
        idx: evt.currentTarget.dataset.idx
      });
    }
  }
})